package com.mob.commons;

import android.content.Context;
import com.mob.tools.network.NetworkHelper;
import com.mob.tools.utils.DeviceHelper;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Locale;
import java.util.TimeZone;

public class f extends NetworkHelper
{
  private static final String[] a = { "SHARESDK", "SMSSDK", "SHAREREC", "MOBAPI" };
  private static f b;
  private DeviceHelper c;
  private HashMap<String, MobProduct> d;

  private f(Context paramContext)
  {
    this.c = DeviceHelper.getInstance(paramContext);
    this.d = new HashMap();
  }

  public static f a(Context paramContext)
  {
    if (b == null)
      b = new f(paramContext);
    return b;
  }

  public String a(ArrayList<MobProduct> paramArrayList)
  {
    String str1 = this.c.getPackageName() + "/" + this.c.getAppVersionName();
    int i = paramArrayList.size();
    int j = 0;
    Object localObject1 = "";
    while (true)
    {
      if (j < i);
      try
      {
        if (((String)localObject1).length() > 0)
        {
          String str7 = (String)localObject1 + " ";
          localObject2 = str7;
          try
          {
            MobProduct localMobProduct = (MobProduct)paramArrayList.get(j);
            String str6 = (String)localObject2 + localMobProduct.getProductTag() + "/" + localMobProduct.getSdkver();
            localObject1 = str6;
            j++;
            continue;
            String str2 = "Android/" + this.c.getOSVersionInt();
            String str3 = TimeZone.getDefault().getID();
            String str4 = "Lang/" + Locale.getDefault().toString().replace("-r", "-");
            StringBuilder localStringBuilder = new StringBuilder().append(str1).append(" ").append((String)localObject1);
            if (((String)localObject1).length() > 0);
            for (String str5 = " "; ; str5 = "")
              return str5 + str2 + " " + str3 + " " + str4;
          }
          catch (Throwable localThrowable2)
          {
            while (true)
              localObject1 = localObject2;
          }
        }
      }
      catch (Throwable localThrowable1)
      {
        while (true)
        {
          continue;
          Object localObject2 = localObject1;
        }
      }
    }
  }

  // ERROR //
  public ArrayList<MobProduct> a()
  {
    // Byte code:
    //   0: ldc 132
    //   2: invokestatic 138	com/mob/tools/utils/ReflectHelper:importClass	(Ljava/lang/String;)Ljava/lang/String;
    //   5: pop
    //   6: getstatic 27	com/mob/commons/f:a	[Ljava/lang/String;
    //   9: astore 7
    //   11: aload 7
    //   13: arraylength
    //   14: istore 8
    //   16: iconst_0
    //   17: istore 9
    //   19: iload 9
    //   21: iload 8
    //   23: if_icmpge +61 -> 84
    //   26: aload 7
    //   28: iload 9
    //   30: aaload
    //   31: astore 10
    //   33: aload 10
    //   35: iconst_0
    //   36: anewarray 140	java/lang/Object
    //   39: invokestatic 144	com/mob/tools/utils/ReflectHelper:newInstance	(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/Object;
    //   42: checkcast 90	com/mob/commons/MobProduct
    //   45: astore 12
    //   47: aload 12
    //   49: ifnull +20 -> 69
    //   52: aload_0
    //   53: getfield 44	com/mob/commons/f:d	Ljava/util/HashMap;
    //   56: aload 12
    //   58: invokeinterface 93 1 0
    //   63: aload 12
    //   65: invokevirtual 148	java/util/HashMap:put	(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    //   68: pop
    //   69: iinc 9 1
    //   72: goto -53 -> 19
    //   75: astore_1
    //   76: invokestatic 153	com/mob/tools/MobLog:getInstance	()Lcom/mob/tools/log/NLog;
    //   79: aload_1
    //   80: invokevirtual 159	com/mob/tools/log/NLog:w	(Ljava/lang/Throwable;)I
    //   83: pop
    //   84: new 73	java/util/ArrayList
    //   87: dup
    //   88: invokespecial 160	java/util/ArrayList:<init>	()V
    //   91: astore_3
    //   92: aload_0
    //   93: getfield 44	com/mob/commons/f:d	Ljava/util/HashMap;
    //   96: invokevirtual 164	java/util/HashMap:entrySet	()Ljava/util/Set;
    //   99: invokeinterface 170 1 0
    //   104: astore 4
    //   106: aload 4
    //   108: invokeinterface 176 1 0
    //   113: ifeq +26 -> 139
    //   116: aload_3
    //   117: aload 4
    //   119: invokeinterface 180 1 0
    //   124: checkcast 182	java/util/Map$Entry
    //   127: invokeinterface 185 1 0
    //   132: invokevirtual 189	java/util/ArrayList:add	(Ljava/lang/Object;)Z
    //   135: pop
    //   136: goto -30 -> 106
    //   139: aload_3
    //   140: areturn
    //   141: astore 11
    //   143: goto -74 -> 69
    //
    // Exception table:
    //   from	to	target	type
    //   0	16	75	java/lang/Throwable
    //   26	33	75	java/lang/Throwable
    //   33	47	141	java/lang/Throwable
    //   52	69	141	java/lang/Throwable
  }

  public void a(MobProduct paramMobProduct)
  {
    if ((paramMobProduct != null) && (!this.d.containsKey(paramMobProduct.getProductTag())))
      this.d.put(paramMobProduct.getProductTag(), paramMobProduct);
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.mob.commons.f
 * JD-Core Version:    0.6.2
 */